package com.smxy.mall.model.news;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class NewsCatRequest {
    private Integer id;
    @ApiModelProperty(value = "pid", example = "1")
    @NotNull(message = "缺少pid")
    private Integer pid;  //一级分类 -1
    @NotNull(message = "分类名称不能为null")
    @NotBlank(message = "分类名称不能为空")
    private String name;  //分类名称
    private String cover; //分类封面
    private String remark;  //备注
}
